﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WF.ViewModels.Common;
using WF.Common;

namespace WF.Web
{
    public partial class LeftMenu : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //LeftMenuVM leftMenuVM = new LeftMenuVM();
            //leftMenu.InnerHtml = leftMenuVM.GetCurrentUserHtmlMenu();
            if (!IsPostBack)
            {
                string users = System.Configuration.ConfigurationManager.AppSettings["ApplyQueryUser"];
                SessionManager sm = new SessionManager();
                UserProfile user = sm.CurrentUser;
                //string LoginName = user.LoginName.Split('\\')[1].ToLower();
                string LoginName = user.LoginName;
                //if (string.IsNullOrEmpty(users) || !users.Contains(LoginName))
                //{
                //    ddQueryApply.Visible = false;
                //    ddOutOfficeList.Visible = false;
                //}
                //else
                //{
                //    ddQueryApply.Visible = true;
                //    ddOutOfficeList.Visible = true;
                //}
            }
        }
    }
}